<?php

class SiteController extends Controller
{
	public function actionError()
	{
		$e = app()->errorHandler->getError();
		var_dump($e);
	}
	
	
	public function accessRules()
	{
		return array(

			array(
				'allow',	//should be 'deny', 'allow' is used to give convenient to make test
				'users' => array('*'),
				'redirect' => '/admin/access/login'
			)
		);
	}
}